/**
 * 
 */
package ProtoSimulator;

/**
 * @author jjmb
 *
 */

import java.io.*;
import java.net.*;
import java.util.*;
import java.lang.Thread;
import java.net.URL;
import java.util.Properties;
import javax.activation.*;
import javax.mail.*;
import javax.mail.PasswordAuthentication;
import javax.mail.internet.*;
import javax.mail.Authenticator;

public class SmtpAuthenticator extends Authenticator {
	private static String username = null;
	private static String password = null;
	
	public SmtpAuthenticator(String smtpUsername, String smtpPassword) {
		username = smtpUsername;
		password = smtpPassword;
	}

	protected PasswordAuthentication getPasswordAuthentication()
    {
       return new PasswordAuthentication(username,password); 
    } 
}
